module test1 (
  clk,
  hex0,
  dp0
  );
  
  // Configuration parameters
localparam  HB_CNT_WIDTH  = 26;
localparam  HB_CNT_MSb    = HB_CNT_WIDTH - 1;

input clk;
output [6:0] hex0;
output dp0;

reg   [ HB_CNT_MSb:0] hbled_r     = {HB_CNT_WIDTH{1'b0}};
reg [3:0] CharIn = 4'h0;
reg dp0;

always @ (posedge clk)
begin
  // Set the decimal point High which is OFF for this module
  dp0 = 1'b1;
 

  
  // When the counter reaches zero - increment the character shown
  if (hbled_r == 50000000) begin
    CharIn <= CharIn + 4'b0001;
	 hbled_r <= 0;
  end else begin
    // Increment the counter
    hbled_r <= hbled_r + 1'b1;
  end
end

// Decode the character into the LED segments
HexDecoder HexDecoder1(hex0, CharIn);

endmodule
  